-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replication: define error conditions for GetVolumeReplicationInfo #47
Conversation
Making this optional is fine, but when lastSyncTime is not present in status, what is the assumption consumers would have in terms of the time it was last synced? IOW, if a driver does not support this then this cannot be used. A driver that supports this, may not update it at which point there needs to be an assumption made by consumers that this is not yet synced. How would consumers know the capability and act accordingly is the key question. |
When the last sync time is not present in the current request, the consumer should reuse the last known time for previous RPC calls. |
Which is fine, question is when a driver does not support this there is no prior value as well, and how does the consumer know and communicate to the user or other consumers that this is not supported? |
In that case, no LastSyncTime will be added and it's based on the capability.
|
If a driver does not ever return the optional LastSyncTime in the GetReplicationInfo response. What are consumers expected to use as LastSyncTime? |
If the driver is not returning, user will use last known LastSyncTime |
I still must be missing something... GetVolumeReplicationInfo is the only place where LastSyncTime could be returned. There is no other way to find out when the syncing was last finished, I think? Consumers may not rely on optional attributes for their functioning, so the LastSyncTime in GetVolumeReplicationInfo can only be used informative? |
Yes, its for information only the consumer cannot decide based on it.
The final sync complete is based on the readyToUse flag in the resync RPC call. |
I don't see it being useful for a driver to implement I'd like to see a description of errors that can be returned on a Keeping the |
0bdec90
to
3a6f29a
Compare
@nixpanic PTAL |
63ccc36
to
2f3cc66
Compare
In some cases the driver might not be able to return the Replication details for a period of time, in that case it can return well known error codes based on that CO can retry to call the GetVolumeReplicationInfo in exponential backoff to get the required details. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2f3cc66
to
b7f4f7a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! keeping the last_sync_time
as required and defined errors is much better 👍
csi-addons/spec#47 defines the error messages for the GetVolumeReplicationInfo RPC call. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
csi-addons/spec#47 has the defined errors for the GetVolumeReplicationInfo RPC call. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
csi-addons/spec#47 defines the error messages for the GetVolumeReplicationInfo RPC call. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
csi-addons/spec#47 defines the error messages for the GetVolumeReplicationInfo RPC call. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
csi-addons/spec#47 defines the error messages for the GetVolumeReplicationInfo RPC call. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
csi-addons/spec#47 has the defined errors for the GetVolumeReplicationInfo RPC call. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
csi-addons/spec#47 defines the error messages for the GetVolumeReplicationInfo RPC call. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
csi-addons/spec#47 has the defined errors for the GetVolumeReplicationInfo RPC call. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
csi-addons/spec#47 defines the error messages for the GetVolumeReplicationInfo RPC call. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
csi-addons/spec#47 defines the error messages for the GetVolumeReplicationInfo RPC call. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com> (cherry picked from commit 3cce629)
csi-addons/spec#47 has the defined errors for the GetVolumeReplicationInfo RPC call. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com> (cherry picked from commit 09674b2)
In some cases the driver might not be able to return the Replication details for some time. In that case, it can return well-known error codes based on that CO can retry to call the GetVolumeReplicationInfo in exponential backoff to get the required details.
Signed-off-by: Madhu Rajanna madhupr007@gmail.com